<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Title</title>
        <meta charset="utf-8"/>
        <h:outputStylesheet name="login.css" library="css"/>
        <!--[if IE]>
        <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"/>
        <![enif]-->
    </h:head>
    <h:body>
        <h:form id="login">
            <h2>admin login</h2>
            <div class="top-bar"></div>
            <fieldset id="inputs">
                <h:inputText styleClass="login_input" required="true" value="#{username}" id="username" type="text" requiredMessage="Username is required"/>
                <h:inputSecret styleClass="login_input" value="#{password}" id="password"  required ="true"/>
            </fieldset>
            <fieldset id="actions">

                <p:commandButton ajax="false" action="#{loginController.login(username, password)}" value="Login"/>
                <h:selectBooleanCheckbox title="Check for remember session" label="" value="#{loginController.remmemberMe}"/>
                <h:outputLabel value="Remember me!"/>
                <h:link style="display:block" outcome="recovery_password" value="fogot your password!?"/>


            </fieldset>
            <div class="bt-bar"></div>
        </h:form>
    </h:body>
</html>
